import request from '@/utils/request'

// 查询村民信息管理列表
export function listVillagers(query) {
  return request({
    url: '/bank/villagers/list',
    method: 'get',
    params: query
  })
}

// 查询村民信息管理详细
export function getVillagers(villagerId) {
  return request({
    url: '/bank/villagers/id/' + villagerId,
    method: 'get'
  })
}

// 新增村民信息管理
export function addVillagers(data) {
  return request({
    url: '/bank/villagers',
    method: 'post',
    data: data
  })
}

// 修改村民信息管理
export function updateVillagers(data) {
  return request({
    url: '/bank/villagers',
    method: 'put',
    data: data
  })
}

// 删除村民信息管理
export function delVillagers(villagerId) {
  return request({
    url: '/bank/villagers/' + villagerId,
    method: 'delete'
  })
}
